﻿<!DOCTYPE html>
<html xmlns:th="http://www.thymeleaf.org">
<head>
<meta charset="utf-8">
<title>Ecology</title>
<!-- Stylesheets -->
<link href="css/bootstrap.css" rel="stylesheet">
<link href="css/style.css" rel="stylesheet">
<!-- Responsive -->
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=0">
<link href="css/responsive.css" rel="stylesheet">
<!--[if lt IE 9]><script src="http://html5shim.googlecode.com/svn/trunk/html5.js"></script><![endif]-->
<!--[if lt IE 9]><script src="js/respond.js"></script><![endif]-->
</head>

<body>
<div class="page-wrapper">
 	
    <!-- Preloader -->
    <div class="preloader"></div>
    
 	
    <!-- Main Header -->
    <header class="main-header">
    	<div class="top-bar">
        	<div class="top-container">
            	<!--Info Outer-->
                 <div class="info-outer">
                 	<!--Info Box-->
                    <ul class="info-box clearfix">
                        <li><a href="/user/logout">退出登录</a></li>
                        <li><a href="userCenterPage" th:text="${res.user.username}"></a></li>
                    </ul>
                 </div>
            </div>
        </div>
    	<!-- Header Upper -->
        <div class="header-upper">
            <div class="auto-container clearfix">
                <!-- Logo -->
                <div class="logo" style="width: 20%">
                    <a href="#"><img src="images/logo-1.png" alt="Ecology"></a>
                 </div>
                 
                 <!--Nav Outer-->
                <div class="nav-outer clearfix">

                    <!-- Main Menu -->
                    <nav class="main-menu">

                        <div class="navbar-header">
                            <!-- Toggle Button -->
                            <button type="button" class="navbar-toggle" data-toggle="collapse" data-target=".navbar-collapse">
                                <span class="icon-bar"></span>
                                <span class="icon-bar"></span>
                                <span class="icon-bar"></span>
                            </button>
                        </div>

                        <div class="navbar-collapse collapse clearfix">
                            <ul class="navigation">
                                <li><a href="areaPage">管理土地</a></li>
                                <li><a href="cropTypePage">管理农作物种类</a></li>
                                <li><a href="#" style="color: #0F9E5E">管理农作物</a></li>
                                <li><a href="seePage">实时监控</a></li>
                                <li><a href="medicinePage">植物农药管理</a></li>
                                <li><a href="messagePage">通知公告</a></li>
                                <li><a href="searchAudit">用户审批</a></li>
                                <li><a href="userPage">人员管理</a></li>
                                <li><a href="userCenterPage">个人中心</a></li>
                            </ul>
                        </div>
                    </nav><!-- Main Menu End-->

                </div>
                
            </div>
        </div><!-- Header Top End -->
        
    </header><!--End Main Header -->


    <section class="donation-section">
        <div class="donation-form-outer">
            <form method="post" action="uploadCrops" enctype="multipart/form-data">
                <br>

                <!--Form Portlet-->
                <div class="form-portlet">
                    <h4>维护农作物</h4>

                    <div class="row clearfix">

                        <div class="form-group col-lg-6 col-md-6 col-xs-12">
                            <div class="field-label">名称<span class="required">*</span></div>
                            <input type="text" name="name" value="" placeholder="名称" required>
                        </div>

                        <div class="form-group col-lg-6 col-md-6 col-xs-12">
                            <div class="field-label">种类<span class="required">*</span></div>
                            <select name="tId" required>
                                <option th:text="请选择上传种类"></option>
                                <option th:each="type, iterStat:${res.t.types}" th:value="${type.typeId}" th:text="${type.name}"></option>
                            </select>
                        </div>

                        <div class="form-group col-lg-6 col-md-6 col-xs-12">
                            <div class="field-label">图片<span class="required">*</span></div>
                            <input type="file" name="image" value="" placeholder="图片" required>
                        </div>

                        <div class="form-group col-lg-6 col-md-6 col-xs-12">
                            <div class="field-label">备注<span class="required"></span></div>
                            <input type="text" name="remark" value="" placeholder="备注">
                        </div>
<!--                        <div class="form-group col-lg-6 col-md-6 col-xs-12">-->
<!--                            <div class="field-label">选择土地<span class="required">*</span></div>-->
<!--                            <select name="area" required>-->
<!--                                <option th:text="请选择土地"></option>-->
<!--                                <option th:each="area, iterStat:${res.t.areas}" th:value="${area.id}" th:text="${area.areaName}"></option>-->
<!--                            </select>-->
<!--                        </div>-->
                        <div class="form-group col-lg-6 col-md-6 col-xs-12">
                            <div class="field-label">成熟周期（天）<span class="required">*</span></div>
                            <input type="text" name="maturity" value="" placeholder="成熟周期（天）">
                        </div>
                    </div>
                </div>
                <br>
                    <button type="submit" class="theme-btn btn-style-two" style="float: right; border-radius: 10px; padding: 10px 30px;">确认</button>
            </form>
        </div>
    </section>
</div>
<div class="scroll-to-top scroll-to-target" data-target=".main-header"><span class="fa fa-long-arrow-up"></span></div>

<script src="js/jquery.js"></script>
<script src="js/bootstrap.min.js"></script>
<script src="js/jquery.fancybox.pack.js"></script>
<script src="js/jquery.fancybox-media.js"></script>
<script src="js/owl.js"></script>
<script src="js/wow.js"></script>
<script src="js/script.js"></script>
</body>
</html>
